Skip to content

Conversation

@HeikoKlare
Copy link
Contributor

Several places in the computations of preferred sizes of controls used commercial rounding instead of rounding up in pixel/point calculations. This change further adapts additional places to ensure that the calculated size will be large enough and and subsequent point-to-pixel calculation when setting the bounds according the computations does not lead to smaller results.

This is a follow up to:

I did not find any visual differences yet, so consider this a unification/cleanup to ensure that every conversion involved in computeSize() calculations rounds up.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 3, 2025

Test Results

  118 files  + 3    118 suites  +3   17m 13s ⏱️ + 4m 34s
4 651 tests +37  4 634 ✅ +36  17 💤 +1  0 ❌ ±0 
  330 runs  +18    326 ✅ +17   4 💤 +1  0 ❌ ±0 

Results for commit dd6ee5a. ± Comparison against base commit 9e2bdb5.

♻️ This comment has been updated with latest results.

@HeikoKlare HeikoKlare marked this pull request as ready for review November 3, 2025 11:27
@akoch-yatta akoch-yatta force-pushed the computesize-roundup branch 2 times, most recently from 4a58a39 to cc79235 Compare November 5, 2025 09:31
Copy link
Contributor

@akoch-yatta akoch-yatta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall changes look fine now. I checked for completeness regarding computeSize or ...Trim calls and did not see anything being missed.
Testing for regressions is still missing from my side.

Several places in the computations of preferred sizes of controls used
commercial rounding instead of rounding up in pixel/point calculations.
This change further adapts additional places to ensure that the
calculated size will be large enough and and subsequent point-to-pixel
calculation when setting the bounds according the computations does not
lead to smaller results.
Copy link
Contributor

@akoch-yatta akoch-yatta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not find regressions when testing with it, so this PR is good to go.

@akoch-yatta akoch-yatta merged commit 136b375 into eclipse-platform:master Nov 6, 2025
17 checks passed
@akoch-yatta akoch-yatta deleted the computesize-roundup branch November 6, 2025 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adapt further places to round up when computing control size

2 participants